/*
 * Window.cpp
 *
 *  Created on: 09/06/2014
 *      Author: lucio
 */

#include "Window.h"
#include <iostream>

void Window::NewButton_clicked(){

}

void Window::OpenButton_clicked(){

}

void Window::SaveButton_clicked(){

}

Window::Window(BaseObjectType* object,
		const Glib::RefPtr<Gtk::Builder> &Builder):
			Gtk::Window(object), builder(Builder)
{
	this->board = new Board(this->builder);
	this->elements = new BoardElements(this->builder,this->board);
	this->data = new BoardData(this->builder,this->board);

	this->set_title("Zombies vs Plants vs Bomberman - Editor");

	builder->get_widget("NewButton",this->NewButton);
	builder->get_widget("OpenButton",this->OpenButton);
	builder->get_widget("SaveButton",this->SaveButton);

	NewButton->signal_clicked().connect
				(sigc::mem_fun(*this, &Window::NewButton_clicked));
	OpenButton->signal_clicked().connect
				(sigc::mem_fun(*this, &Window::OpenButton_clicked));
	SaveButton->signal_clicked().connect
				(sigc::mem_fun(*this, &Window::SaveButton_clicked));
}

Window::~Window() {
	// TODO Auto-generated destructor stub
}

